package cn.cleanarch.infra.idp.pms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import cn.cleanarch.infra.idp.database.entity.DBModel;
import org.hibernate.validator.constraints.Length;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 项目分类实体类
 */
@Data
@ToString
@EqualsAndHashCode(callSuper = true)
@TableName("t_project_category")
public class ProjectCategory extends DBModel {

    /**
     * 分类名称
     */
    @Length(max = 100)
    private String name;

    /**
     * 分类描述
     */
    @Length(max = 500)
    private String description;

    /**
     * 父级分类ID
     */
    private Long parentId;

    /**
     * 排序
     */
    private Integer sortOrder;

    /**
     * 创建者ID
     */
    private Long createBy;

    /**
     * 更新者ID
     */
    private Long updateBy;

}